#!/usr/bin/env python

import sys, os
from os3.net import CTPRPC3Server as CTPRPCServer

class ServerDemo ( object ):
	def __init__ ( self ):
		pass

	def hello ( self, txt ):
		return "Hello: %s" % txt

serv = CTPRPCServer.CTPRPCServer ( ( "localhost", 10002  ) )
serv.register_class ( ServerDemo )

print "Server up and running..."

serv.serve_forever ()
